package com.demo.dto;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class StageDto {
    /**
     * CREATE TABLE `stage` (
     *   `sid` varchar(32) NOT NULL,
     *   `sname` varchar(50) NOT NULL,
     *   `starttime` datetime DEFAULT NULL,
     *   `endtime` datetime DEFAULT NULL,
     *   `pid` int(11) DEFAULT NULL,
     *   `updatetime` datetime DEFAULT NULL,
     *   `status` int(11) DEFAULT '1' COMMENT '1代表正常，0代表删除',
     *   PRIMARY KEY (`sid`)
     * ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
     */
    private String sid;
    private String sname;
    private String starttime;
    private String endtime;
    private int pid;
    private String updateTime;
    private int status;

    private ProjectDto projectDto;

    public StageDto(String sid, String sname, String starttime, String endtime, int pid, String updateTime,
                    int status, ProjectDto projectDto) {
        this.sid = sid;
        this.sname = sname;
        this.starttime = starttime;
        this.endtime = endtime;
        this.pid = pid;
        this.updateTime = updateTime;
        this.status = status;
        this.projectDto = projectDto;
    }

    public StageDto() {
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getStarttime() {
        return starttime;
    }

    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public ProjectDto getProjectDto() {
        return projectDto;
    }

    public void setProjectDto(ProjectDto projectDto) {
        this.projectDto = projectDto;
    }

    @Override
    public String toString() {
        return "StageDto{" +
                "sid='" + sid + '\'' +
                ", sname='" + sname + '\'' +
                ", starttime='" + starttime + '\'' +
                ", endtime='" + endtime + '\'' +
                ", pid=" + pid +
                ", updateTime='" + updateTime + '\'' +
                ", status=" + status +
                ", projectDto=" + projectDto +
                '}';
    }
}
